package com.training.entity;

import lombok.Data; // 1. 确保导入 lombok.Data
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

@Data // 2. 确保类上方有这个 @Data 注解
public class OfflinePractice {
    private Long id;
    private String title;
    private String content;

    @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME)
    private LocalDateTime practiceTime;

    private String location; // The field that needs a setter

    private String status;
    private Long teacherId;
    private Long courseId;
    private LocalDateTime createTime;
    private LocalDateTime updateTime;
    private String courseName;
}